import 'package:json_annotation/json_annotation.dart';
import "orderItemModel.dart";
part 'orderModel.g.dart';

@JsonSerializable()
class OrderModel {
  OrderModel();

  @JsonKey(name: '_id') String? id;
  String? uid;
  String? name;
  String? phone;
  String? address;
  String? all_price;
  String? order_id;
  num? add_time;
  num? pay_status;
  num? order_status;
  List<OrderItemModel>? order_item;
  
  factory OrderModel.fromJson(Map<String,dynamic> json) => _$OrderModelFromJson(json);
  Map<String, dynamic> toJson() => _$OrderModelToJson(this);
}
